
import Main from '_c/main'// 主 组件模板

/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: 布尔值 ，本项目已经废除，不认这个参数
 *  hideInMenu: 自定义，根据项目逻辑已经修改，默认全部为true，根据后台回来的权限，在设置成false
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  access: 此项目已经作废 没有这个参数，不用管
 *  icon: 项目需求，老板爱好，二级子icon，不认了。
 *  beforeCloseName: (-) 设置该字段，则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法，作为关闭前的钩子函数
 *  oneNav:一级菜单
 * }
 */
 
// 左侧菜单
const leftNav = [
  {
    path: '/patentGz',
    name: 'patentGz',
    meta: {
      icon: '_ziyuan',
      title: '检索查询',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/searchTmPt',
        name: 'searchTmPt',
        meta: {
          icon: '_ziyuan',
          title: '检索查询',
          notCache: true,
          hideInMenu:true,
        },
        component: () => import('@$@/searchTmPt')
      },
    ]
  },

  {
    path: '/bigService',
    name: 'bigService',
    meta: {
      icon: '_yonghuming',
      title: '服务大厅',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/patentDo',
        name: 'patentDo',
        meta: {
          title: '专利服务',
          notCache: true,
          hideInMenu:true,
          icon: '_yonghuming',
        },
        component: () => import('@$@/patentDo')
      },
      {
        path: '/trademarkDo',
        name: 'trademarkDo',
        meta: {
          title: '商标服务',
          notCache: true,
          hideInMenu:true,
          icon: '_yonghuming',
        },
        component: () => import('@$@/trademarkDo')
      },
      {
        path: '/copyrightDo',
        name: 'copyrightDo',
        meta: {
          title: '版权服务',
          notCache: true,
          hideInMenu:true,
          icon: '_yonghuming',
        },
        component: () => import('@$@/copyrightDo')
      }
    ]
  },
  {
    path: '/markTool',
    name: 'markTool',
    meta: {
      icon: '_banquan',
      title: '数据管理',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/brandAdmin',
        name: 'brandAdmin',
        meta: {
          title: '商标管理',
          notCache: false,
          hideInMenu:true,
          icon: '_banquan',
        },
        component: () => import('@$@/brandAdmin')
      },
      {
        path: '/patentAdmin',
        name: 'patentAdmin',
        meta: {
          title: '专利管理',
          notCache: false,
          hideInMenu:true,
          icon: '_banquan',
        },
        component: () => import('@$@/patentAdmin')
      },
    ]
  }, // 数据管理
  {
    path: '/orderCenter',
    name: 'orderCenter',
    meta: {
      icon: '_icon-contract',
      title: '订单中心',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/orderList',
        name: 'orderList',
        meta: {
          icon: '_icon-contract',
          title: '订单中心',
          notCache: false,//true 页签切换刷新本页
          hideInMenu:true,
        },
        component: () => import('@$@/orderList')
      }
    ]
  },
  {
    path: '/bigData',
    name: 'bigData',
    meta: {
      icon: '_guanli11',
      title: '客户资源',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/clientResources',
        name: 'clientResources',
        meta: {
          icon: '_guanli11',
          title: '商标线索',
          notCache: false,//不缓存:false => 就是缓存本页面的意思，不刷新
          hideInMenu:true,
          icon: '_yonghuming',
        },
        component: () => import('@$@/clientResources')
      },
      {
        path: '/patentRes',
        name: 'patentRes',
        meta: {
          title: '专利线索',
          notCache: false,//不缓存:false => 就是缓存本页面的意思，不刷新
          hideInMenu:true,
          icon: '_yonghuming',
        },
        component: () => import('@$@/patentRes')
      },
    ]
  },
  {
    path: '/accBig',
    name: 'accBig',
    meta: {
      icon: '_fuwu7',
      title: '个人中心',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/personInfo',
        name: 'personInfo',
        meta: {
          icon: '_fuwu7',
          title: '个人信息',
          notCache: true,//不缓存
          hideInMenu:true,
        },
        component: () => import('@$@/personInfo')
      },
    ]
  },
  {
    path: '/accountBig',
    name: 'accountBig',
    meta: {
      icon: '_gongsi',
      title: '企业信息',
      oneNav:true,
      hideInMenu:true,
    },
    component: Main,
    children: [
      {
        path: '/accountInfo',
        name: 'accountInfo',
        meta: {
          icon: '_gongsi',
          title: '企业信息',
          notCache: true,//不缓存
          hideInMenu:true,
        },
        component: () => import('@$@/accountInfo')
      }
    ]
  }
];


export default leftNav;
